<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 1、使用v-for 循环遍历下面数组的数据 -->
        <ul>
            <li v-for="(item,index) in list">{{index+1}}.{{item.title}}，{{item
                .content}}</li>

        </ul>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    new Vue({
        el: '#app',
        data: { //json数据 [{},{},{}]
            list: [{
                title: '月入过万',
                content: '国外游'
            }, {
                title: '月入五千',
                content: '广东游'
            }, {
                title: '月入三千',
                content: '地沟油'
            }, {
                title: '月入两千',
                content: '梦游'
            }]
        }
    })
</script>

</html>